package com.note.simpleshop.module.goods.vo;

import com.note.simpleshop.entity.TbSpec;

import java.io.Serializable;
import java.util.List;

public class SpecVo implements Serializable {
    private String id;
    private String name;
    private Integer sort;
    private String goodsId;
    private List<SpecOptionVo> optionList;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public List<SpecOptionVo> getOptionList() {
        return optionList;
    }

    public void setOptionList(List<SpecOptionVo> optionList) {
        this.optionList = optionList;
    }
    public static SpecVo copy(TbSpec spec)
    {
        SpecVo vo=new SpecVo();
        vo.id=spec.getId();
        vo.name=spec.getName();
        vo.sort=spec.getSort();
        vo.goodsId=spec.getGoodsId();
        return vo;
    }
    public void copy( List<SpecOptionVo> optionList)
    {
        this.optionList=optionList;
    }
}
